package org.zcl.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.zcl.service.RedisConsumer;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/6/22 19:27
 */
@Service
@Slf4j
public class RedisConsumerImpl implements RedisConsumer {

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public Object consumer(String topic) {
        Object o = redisTemplate.opsForList().rightPop(topic);
        while (o != null) {

        }
        return null;
    }
}
